<h1>Listing roads</h1>

<table>
  <tr>
    <th>Status</th>
    <th>Nodo1</th>
    <th>Nodo2</th>
  </tr>

<% for road in @roads %>
  <tr>
    <td><%=h road.status %></td>
    <td><%=h road.nodo1_id %></td>
    <td><%=h road.nodo2_id %></td>
    <td><%= link_to 'Show', road %></td>
    <td><%= link_to 'Edit', edit_road_path(road) %></td>
    <td><%= link_to 'Destroy', road, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New road', new_road_path %>
